﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Students
{
    class Program
    {
        static void Main(string[] args)
        {
            List<StudentInfo> students = new List<StudentInfo>();
            string choice = "N";
            do
            {
                
                StudentInfo student = new StudentInfo();
                student.FillInfoFromConsole();
                students.Add(student);
                Console.WriteLine("Добавить студента? Y/N");
                choice = Console.ReadLine();
            }
            while (choice == "Y");
            Console.Clear();
            Console.ReadKey();

            foreach (var student in students)
            {
                if (student.AverageMark() >= 67)
                {
                    student.PrintStudentInfoToConsole();
                }
            }

        }
    }
}
